import request from '@/config/axios'

export interface BrokerageRecordVO {
  id: number
  userId: number
  bizId: string
  bizType: number
  title: string
  price: number
  totalPrice: number
  description: string
  status: number
  frozenDays: number
  unfreezeTime: Date
  sourceUserLevel: number
  sourceUserId: number
  createTime: Date
  userAvatar: string
  userNickname: string
  sourceUserAvatar: string
  sourceUserNickname: string
}

// 查询佣金记录列表
export const getBrokerageRecordPage = async (params: any) => {
  return await request.get({ url: `/trade/brokerage-record/page`, params })
}

// 查询佣金记录详情
export const getBrokerageRecord = async (id: number) => {
  return await request.get({ url: `/trade/brokerage-record/get?id=` + id })
}
